﻿using System;
using System.Linq;
using System.Text;
using DevExpress.Xpo;
using DevExpress.ExpressApp;
using System.ComponentModel;
using DevExpress.ExpressApp.DC;
using DevExpress.Data.Filtering;
using DevExpress.Persistent.Base;
using System.Collections.Generic;
using DevExpress.ExpressApp.Model;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace Tida.Module.BusinessObjects.研发中心
{
    [NavigationItem("研发中心")]
    [XafDisplayName("电线类型")]
    [DefaultProperty("类型名称")]
    [DefaultClassOptions]
    public class 电线类型 : BaseObject
    { // Inherit from a different class to provide a custom primary key, concurrency and deletion behavior, etc. (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument113146.aspx).
        public 电线类型(Session session)
            : base(session)
        {
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place your initialization code here (https://documentation.devexpress.com/eXpressAppFramework/CustomDocument112834.aspx).
        }

      
        private string _备注;
        private string _类型名称;

        [Size(SizeAttribute.DefaultStringMappingFieldSize)]
        public string 类型名称
        {
            get
            {
                return _类型名称;
            }
            set
            {
                SetPropertyValue("类型名称", ref _类型名称, value);
            }
        }


        [Size(SizeAttribute.DefaultStringMappingFieldSize)]
        public string 备注
        {
            get
            {
                return _备注;
            }
            set
            {
                SetPropertyValue("备注", ref _备注, value);
            }
        }

    }
}